<?php
error_reporting(0);
define('DBHOST', 	'localhost');
define('DBUSER', 	'root');
define('DBPASS', 	'');
//define('DBPASS',    'zhxp#fen880921');
define('DBBASE', 	'taoke');
define('MEMCACHED', true);
define('MEMHOST', 	'127.0.0.1');
define('MEMPORT', 	11211);
define('CACHETIME', 3600*24);
define('SITENAME', 	'爱淘之家淘宝精品');

define('CACHE_STORAGE',		'files');
define('CACHE_PATH',		PROJECT_ROOT.'data/cache/');
define('CACHE_TPL_PATH',	PROJECT_ROOT.'data/cache_tpl/');


define('MEMCACHE_HOST',		'127.0.0.1');
define('MEMCACHE_PORT',		11211);
define('MEMCACHE_TIMEOUT',	3600*24); //一天


define('TPL_ROOT',			PROJECT_ROOT.'templates/');
define('TPL_NAME',			'taoke');
define('TPL_CSS',			'default');
define('TPL_CACHEPATH',		PROJECT_ROOT.'data/cache_template/');
define('TPL_REFRESH',		1);

define('CHARSET',			'utf-8');
define('DEBUG',				1);

function get_link_site()
{
	$conn = mysql_connect(DBHOST,DBUSER,DBPASS) or die(mysql_errno().mysql_error());
	mysql_select_db(DBBASE,$conn);
	mysql_query('SET NAMES UTF8');
	$query = mysql_query("select * from `site_link` order by sort desc");
	$rows  = array();
	while($row = mysql_fetch_assoc($query))
		$rows[] = $row;
	mysql_close($conn);
	return $rows;
}
